using BaseData.ErrorCode;
using MediatR;

namespace BaseData.WriteApi.Application.Command.Users
{
    /// <summary>
    /// 用户信息更新命令
    /// </summary>
    public class UpdateUserCommand : IRequest<Apiresult<int>>
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }
        
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; } = string.Empty;
        
        /// <summary>
        /// 密码（可选，为空则不更新）
        /// </summary>
        public string? Password { get; set; }
        
        /// <summary>
        /// 邮箱
        /// </summary>
        public string UserEmail { get; set; } = string.Empty;
        
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; } = string.Empty;
        
        /// <summary>
        /// 角色ID
        /// </summary>
        public int RoleId { get; set; }
    }
}